package cool.qingqing;

import com.sun.org.apache.bcel.internal.generic.GOTO;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 高山青
 * @Date 2021/12/1  -   10:29
 */
public class TestSwitch {
	public static void main(String[] args) {
	   final 	int tenSwitch=10;
		switch (10){
			case tenSwitch:
				System.out.println("打印出来："+tenSwitch);
				break;
			default:
				System.out.println("不知道");
		}
		int a = 6;
		for (int i = 0; i <a ; i++) {
			
		}

		List list=new ArrayList<>();
		list.add("高山青01");
		list.add("高山青02");
		list.add("高山青03");
		list.add("高山青04");
		List gaoList=list.subList(2,4);
		gaoList.forEach(item->{
			System.out.println(item);
		});
	}
}
